package com.isoftstone.storage.events;

/**
 * 
 * 传输监听者
 * 
 */
public interface TransferListener {
	/**
	 * @param transferEvent
	 */
	void transferInitiated(TransferEvent transferEvent);

	/**
	 * @param transferEvent
	 */
	void transferStarted(TransferEvent transferEvent);

	/**
	 * @param transferEvent
	 */
	void transferProgress(TransferEvent transferEvent, byte[] buffer, int length);

	/**
	 * @param transferEvent
	 */
	void transferCompleted(TransferEvent transferEvent);

	/**
	 * @param transferEvent
	 */
	void transferError(TransferEvent transferEvent);

	/**
	 * @param message
	 */
	void debug(String message);

}
